import {Routes} from '@angular/router';
import {MainComponent} from "./pages/main/main.component";
import {PageNotFoundComponent} from "./pages/page-not-found/page-not-found.component";

export const routes: Routes = [
  // {path: '', component: MainComponent, data: {title: 'main', animation: true}},
  {path: '', redirectTo: 'index', pathMatch: 'full'},
  {path: '', loadChildren: () => import('./pages/main/main.module').then(m => m.MainModule)},

  // {path: '**', redirectTo: 'index', pathMatch: 'full'},
  {path: "**", component: PageNotFoundComponent, data: {title: '404', animation: true}}
];

